Dynomotion

Group: DynoMotion Message: 5072 From: dotma99 Date: 5/26/2012
Subject: Toolchange software for KMotion CNC
Hi Tom

Do you have any examples of C code to be used for operating a tool change in KmotionCNC?

I can probably write something myself, but I am very new to c.

My initial question is how you store and access the tool number.

eg, If I put T3M6 in my G code, how do I get my c code program (triggered by the M6) to know that the tool number is 3?

Also, can I access data in the tool table from my c program?

thanks

Edward
Group: DynoMotion Message: 5074 From: Tom Kerekes Date: 5/26/2012
Subject: Re: Toolchange software for KMotion CNC
Hi Edward,
 
No I don't have any good examples.  Every tool changer is different.
 
There is an example ToolChange.c that will just print the Tool number.
 
Assign that to M6 and specify an unused Thread and VAR of 9 
 
No there isn't currently a means of getting to the Tool Table from KFLOP.  I suppose that could be added as a KFLOPtoPC command similar to
PC_COMM_GETAXISRES
 
Regards
TK
 
From: dotma99 <edward@...>
To: DynoMotion@yahoogroups.com
Sent: Saturday, May 26, 2012 11:43 AM
Subject: [DynoMotion] Toolchange software for KMotion CNC

 
Hi Tom

Do you have any examples of C code to be used for operating a tool change in KmotionCNC?

I can probably write something myself, but I am very new to c.

My initial question is how you store and access the tool number.

eg, If I put T3M6 in my G code, how do I get my c code program (triggered by the M6) to know that the tool number is 3?

Also, can I access data in the tool table from my c program?

thanks

Edward



Group: DynoMotion Message: 5083 From: dotma99 Date: 5/28/2012
Subject: Re: Toolchange software for KMotion CNC
Thanks Tom

I can now access the tool number in code following your help, so I should be able to manage.

Edward

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Edward,
>  
> No I don't have any good examples.  Every tool changer is different.
>  
> There is an example ToolChange.c that will just print the Tool number.
>  
> Assign that to M6 and specify an unused Thread and VAR of 9 
>  
> No there isn't currently a means of getting to the Tool Table from KFLOP.  I suppose that could be added as a KFLOPtoPC command similar to PC_COMM_GETAXISRES
>  
> Regards
> TK
>  
>
> ________________________________
> From: dotma99 <edward@...>
> To: DynoMotion@yahoogroups.com
> Sent: Saturday, May 26, 2012 11:43 AM
> Subject: [DynoMotion] Toolchange software for KMotion CNC
>
>
>  
>
> Hi Tom
>
> Do you have any examples of C code to be used for operating a tool change in KmotionCNC?
>
> I can probably write something myself, but I am very new to c.
>
> My initial question is how you store and access the tool number.
>
> eg, If I put T3M6 in my G code, how do I get my c code program (triggered by the M6) to know that the tool number is 3?
>
> Also, can I access data in the tool table from my c program?
>
> thanks
>
> Edward
>